import request from '@/utils/request'
const bathPath = '/admin/tag'
// 获取标签列表
export const getTagList = () => {
  return request.get(bathPath)
}
// 新增标签
export const addTag = data => {
  return request.post(bathPath, data)
}
// 更新标签
export const updateTag = data => {
  return request.put(bathPath, data)
}
// 删除标签
export const deleteTag = id => {
  return request.delete(`${bathPath}/${id}`)
}
